/**
 * 测试用，获取传来的数据
 */
import { Ajaxurl } from "@/store/defaultData";
import { TaskTableType } from "@/store/interface";
import axios from "axios";
//import { instance, } from "@/axios/public";
/**
 * 添加自定义公共引导页
 * 接收路由字符串
 */
export const GetTestData = async () => {
  const params = new URLSearchParams();
  params.append("action", "test_data_callback");
  try {
    const res = await axios.post(Ajaxurl, params); //执行
    console.log(res);
    console.log(res.data);
    return res.data.data as TaskTableType;
  } catch (error) {
    console.log("添加自定义公共引导页失败");
    throw error; // 可以抛出错误，以便调用者处理
  }
};
